package com.allenyuan.render;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.ListIterator;

import com.allenyuan.renderobject.RenderObject;

public class RenderObjectList extends LinkedList<RenderObject> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 356590317496106674L;

	public void render(Renderer r) {
		Iterator<RenderObject> it = super.iterator();
		while (it.hasNext()) {
			it.next().draw(r);
		}
	}
	
	public void addRenderObject(RenderObject obj) {
		super.add(obj);
	}
	
	public RenderObject getLast() {
		return super.getLast();
	}


}
